package structureType.decorator;

import structureType.decorator.dancer.IDancer;
import structureType.decorator.dancer.impl.DancerImpl;
import structureType.decorator.decorator.DancerDecorator;

public class Main {

    public static void main(String[] args) {
        // 仅仅是跳舞，没有装饰过程
        IDancer iDancer = new DancerImpl();
        iDancer.dance();

        // 装饰舞蹈家
        DancerDecorator decorator = new DancerDecorator(iDancer); // iDancer是被装饰的对象Decoratee
        decorator.dance();
    }
}
